<template>
  <div class="commonLabel t-25">
    <div class="t-10 f-l">常用标签</div>
    <el-divider />

    <el-tag class="l-8 t-10" v-for="o in tags" :key="o" type="info">{{
      o.name
    }}</el-tag>
  </div>
</template>
<script>
import { $getFrequentTag } from "../api/tag";
export default {
  data() {
    return {
      tags: [],
    };
  },
  mounted() {
    this.getFrequentTag();
  },
  methods: {
    async getFrequentTag() {
      let { data } = await $getFrequentTag();
      this.tags = data;
    },
  },
};
</script>

<style>
.commonLabel {
  width: 300px;
  background-color: #ffffff;
  text-align: left;
  padding: 20px;
}
</style>